<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>复古胶片相机 - 许愿详情 - WishSocial</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #e0e7ff;
            --secondary: #ec4899;
            --secondary-light: #fee2e2;
            --light-gray: #f3f4f6;
            --dark-gray: #1f2937;
            --text-gray: #6b7280;
            --border-color: #e5e7eb;
        }
        
        body {
            background-color: #fafafa;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--dark-gray);
            line-height: 1.6;
        }
        
        .container {
            max-width: 1000px;
        }
        
        /* 头部样式 */
        .site-header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            font-size: 1.8rem;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            background-color: var(--light-gray);
            border: none;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 8px;
            width: 100%;
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-gray);
        }
        
        .nav-links .nav-link {
            color: var(--dark-gray);
            font-weight: 500;
            margin-left: 1.5rem;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 主体内容 */
        .main-content {
            padding: 2rem 0;
        }
        
        .breadcrumb {
            margin-bottom: 1.5rem;
            background-color: transparent;
            padding: 0;
            font-size: 0.9rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-gray);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark-gray);
        }
        
        /* 许愿详情卡片 */
        .wish-detail-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        /* 图片展示区 */
        .wish-gallery {
            position: relative;
            background-color: #f0f0f0;
        }
        
        .main-image {
            width: 100%;
            height: 500px;
            object-fit: contain;
            background-color: #f9f9f9;
        }
        
        .thumbnail-container {
            display: flex;
            gap: 0.5rem;
            padding: 1rem;
            overflow-x: auto;
            scrollbar-width: thin;
            background-color: white;
            border-top: 1px solid var(--border-color);
        }
        
        .thumbnail {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        
        .thumbnail:hover,
        .thumbnail.active {
            opacity: 1;
            border-color: var(--primary);
        }
        
        .image-count {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: rgba(0,0,0,0.5);
            color: white;
            border-radius: 4px;
            padding: 0.25rem 0.5rem;
            font-size: 0.85rem;
        }
        
        /* 许愿内容区 */
        .wish-content {
            padding: 1.5rem;
        }
        
        .wish-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.4;
        }
        
        .wish-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .wish-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .author-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            display: flex;
            flex-direction: column;
        }
        
        .author-name {
            font-weight: 600;
            color: var(--dark-gray);
        }
        
        .post-time {
            font-size: 0.85rem;
            color: var(--text-gray);
        }
        
        .wish-status {
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            background-color: #fef3c7;
            color: #d97706;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        
        .wish-description {
            font-size: 1.05rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: var(--dark-gray);
        }
        
        .wish-details {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: var(--light-gray);
            border-radius: 8px;
        }
        
        .detail-item {
            display: flex;
            flex-direction: column;
        }
        
        .detail-label {
            font-size: 0.85rem;
            color: var(--text-gray);
            margin-bottom: 0.25rem;
        }
        
        .detail-value {
            font-weight: 600;
        }
        
        .wish-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .wish-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.35rem 0.85rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        /* 操作按钮区 */
        .wish-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .action-button {
            flex: 1;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #4338ca;
        }
        
        .btn-secondary {
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark-gray);
        }
        
        .btn-secondary:hover {
            background-color: var(--light-gray);
        }
        
        .btn-like {
            color: var(--secondary);
            background-color: var(--secondary-light);
        }
        
        .btn-like:hover {
            background-color: #fecaca;
        }
        
        /* 互动数据 */
        .interaction-stats {
            display: flex;
            gap: 2rem;
            margin-bottom: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-gray);
        }
        
        .stat-value {
            font-weight: 600;
            color: var(--dark-gray);
        }
        
        /* 留言区 */
        .comments-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 留言输入框 */
        .comment-input-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-wrapper {
            flex: 1;
        }
        
        .comment-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            resize: none;
            min-height: 100px;
            font-family: inherit;
            font-size: 0.95rem;
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 1rem;
        }
        
        .cancel-btn {
            background: none;
            border: none;
            color: var(--text-gray);
            padding: 0.5rem 1rem;
            cursor: pointer;
        }
        
        .post-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .post-btn:hover {
            background-color: #4338ca;
        }
        
        /* 留言列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 600;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        .comment-text {
            background-color: var(--light-gray);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            margin-bottom: 0.75rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            color: var(--text-gray);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--secondary);
        }
        
        /* 回复区 */
        .replies {
            margin-left: 2.5rem;
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-header {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
        }
        
        .reply-author {
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .reply-to {
            color: var(--text-gray);
            font-size: 0.9rem;
        }
        
        .reply-text {
            background-color: var(--light-gray);
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .reply-actions {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
        }
        
        .reply-input-container {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        
        .reply-input {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: 0.9rem;
        }
        
        .reply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
        }
        
        /* 相关推荐 */
        .related-wishes {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            padding: 1.5rem;
        }
        
        .related-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }
        
        .related-card {
            text-decoration: none;
            color: var(--dark-gray);
        }
        
        .related-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }
        
        .related-title {
            font-weight: 600;
            font-size: 0.95rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 0.25rem;
        }
        
        .related-meta {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .search-container {
                max-width: 200px;
            }
            
            .main-image {
                height: 300px;
            }
            
            .wish-title {
                font-size: 1.5rem;
            }
            
            .wish-actions {
                flex-wrap: wrap;
            }
            
            .action-button {
                flex: 1 0 40%;
            }
            
            .related-container {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                display: none;
            }
            
            .main-image {
                height: 250px;
            }
            
            .wish-actions {
                flex-direction: column;
            }
            
            .action-button {
                flex: none;
                width: 100%;
            }
            
            .interaction-stats {
                flex-wrap: wrap;
                gap: 1rem;
            }
            
            .related-container {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
        }
    </style>
</head>
<body>
    <!-- 网站头部 -->
    <header class="site-header py-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <a href="#" class="logo">
                    <i class="fas fa-gift"></i>
                    WishSocial
                </a>
                
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索许愿...">
                </div>
                
                <nav class="nav-links d-flex align-items-center">
                    <a href="#" class="nav-link">
                        <i class="fas fa-home"></i>
                        <span class="nav-text">首页</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-filter"></i>
                        <span class="nav-text">许愿筛选</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-plus-circle"></i>
                        <span class="nav-text">发布许愿</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-bell"></i>
                        <span class="nav-text">通知</span>
                    </a>
                    <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar ms-2">
                </nav>
            </div>
        </div>
    </header>
    
    <!-- 主体内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 面包屑导航 -->
            <nav class="breadcrumb">
                <li class="breadcrumb-item"><a href="#">首页</a></li>
                <li class="breadcrumb-item"><a href="#">许愿筛选</a></li>
                <li class="breadcrumb-item"><a href="#">摄影</a></li>
                <li class="breadcrumb-item active">复古胶片相机</li>
            </nav>
            
            <!-- 许愿详情卡片 -->
            <article class="wish-detail-card">
                <!-- 图片展示区 -->
                <div class="wish-gallery">
                    <img src="https://picsum.photos/1200/800?random=10" alt="复古胶片相机正面图" class="main-image" id="mainImage">
                    <div class="image-count">1/3</div>
                    
                    <div class="thumbnail-container">
                        <img src="https://picsum.photos/1200/800?random=10" alt="复古胶片相机正面图" class="thumbnail active" data-img="https://picsum.photos/1200/800?random=10">
                        <img src="https://picsum.photos/1200/800?random=11" alt="复古胶片相机侧面图" class="thumbnail" data-img="https://picsum.photos/1200/800?random=11">
                        <img src="https://picsum.photos/1200/800?random=12" alt="复古胶片相机镜头细节" class="thumbnail" data-img="https://picsum.photos/1200/800?random=12">
                    </div>
                </div>
                
                <!-- 许愿内容区 -->
                <div class="wish-content">
                    <h1 class="wish-title">复古胶片相机 - 记录生活中的美好瞬间</h1>
                    
                    <div class="wish-meta">
                        <div class="wish-author">
                            <img src="https://picsum.photos/100/100?random=20" alt="摄影师小林的头像" class="author-avatar">
                            <div class="author-info">
                                <span class="author-name">摄影师小林</span>
                                <span class="post-time">发布于 3天前</span>
                            </div>
                        </div>
                        <span class="wish-status">
                            <i class="fas fa-hourglass-half"></i> 未实现
                        </span>
                    </div>
                    
                    <div class="wish-description">
                        一直想拥有一台复古胶片相机，喜欢胶片带来的独特质感和色彩表现。希望能记录下生活中的点点滴滴，从城市街景到自然风光，从家人聚会到独自旅行。相比于数字摄影的即时性，我更喜欢胶片摄影带来的期待感和仪式感。
                        <br><br>
                        理想中的型号是佳能AE-1或尼康FM2，最好是带50mm标准镜头的套装。如果有朋友愿意割爱或者知道哪里可以买到性价比高的二手设备，也非常欢迎推荐！
                    </div>
                    
                    <div class="wish-details">
                        <div class="detail-item">
                            <span class="detail-label">预算范围</span>
                            <span class="detail-value">¥1,000 - ¥2,000</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">期望品牌</span>
                            <span class="detail-value">佳能、尼康、宾得</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">发布地区</span>
                            <span class="detail-value">上海市</span>
                        </div>
                        <div class="detail-item">
                            <span class="detail-label">最后更新</span>
                            <span class="detail-value">1天前</span>
                        </div>
                    </div>
                    
                    <div class="wish-tags">
                        <span class="wish-tag">摄影</span>
                        <span class="wish-tag">胶片相机</span>
                        <span class="wish-tag">复古</span>
                        <span class="wish-tag">生活记录</span>
                    </div>
                    
                    <!-- 操作按钮区 -->
                    <div class="wish-actions">
                        <button class="action-button btn-primary">
                            <i class="fas fa-gift"></i> 帮助实现
                        </button>
                        <button class="action-button btn-like" id="likeBtn">
                            <i class="far fa-heart"></i>
                            <span id="likeCount">328</span>
                        </button>
                        <button class="action-button btn-secondary" id="saveBtn">
                            <i class="far fa-bookmark"></i> 收藏
                        </button>
                        <button class="action-button btn-secondary">
                            <i class="fas fa-share-alt"></i> 分享
                        </button>
                    </div>
                    
                    <!-- 互动数据 -->
                    <div class="interaction-stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i>
                            <span>浏览量: <span class="stat-value">2.4k</span></span>
                        </div>
                        <div class="stat-item">
                            <i class="far fa-comment"></i>
                            <span>评论: <span class="stat-value">42</span></span>
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-bookmark"></i>
                            <span>收藏: <span class="stat-value">89</span></span>
                        </div>
                    </div>
                </div>
            </article>
            
            <!-- 留言区 -->
            <section class="comments-section">
                <h2 class="section-title">
                    <i class="far fa-comments"></i> 留言 (42)
                </h2>
                
                <!-- 留言输入框 -->
                <div class="comment-input-container">
                    <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar">
                    <div class="comment-input-wrapper">
                        <textarea class="comment-input" placeholder="分享你的想法..."></textarea>
                        <div class="comment-actions">
                            <button class="cancel-btn">取消</button>
                            <button class="post-btn">发布留言</button>
                        </div>
                    </div>
                </div>
                
                <!-- 留言列表 -->
                <div class="comments-list">
                    <!-- 留言1 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <span class="comment-author">摄影爱好者小王</span>
                                <span class="comment-time">2天前</span>
                            </div>
                            <div class="comment-text">
                                我有一台尼康FM2，成色很新，去年在日本中古店淘的，一直没怎么用。如果有兴趣可以私聊我发细节图给你看看，价格可以商量。
                            </div>
                            <div class="comment-actions">
                                <span class="comment-action like-comment">
                                    <i class="far fa-heart"></i> 24
                                </span>
                                <span class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </span>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=20" alt="用户头像" class="comment-avatar">
                                    <div class="comment-content">
                                        <div class="reply-header">
                                            <span class="reply-author">摄影师小林</span>
                                            <span class="reply-to">回复 摄影爱好者小王</span>
                                        </div>
                                        <div class="reply-text">
                                            非常感兴趣！麻烦您私信我细节图和价格吧，谢谢啦！
                                        </div>
                                        <div class="reply-actions">
                                            <span class="comment-action like-reply">
                                                <i class="far fa-heart"></i> 5
                                            </span>
                                            <span class="comment-action reply-btn">
                                                <i class="far fa-reply"></i> 回复
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="reply-input-container" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar">
                                    <input type="text" class="reply-input" placeholder="回复 @摄影爱好者小王...">
                                    <button class="reply-btn">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言2 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=31" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <span class="comment-author">胶片达人</span>
                                <span class="comment-time">3天前</span>
                            </div>
                            <div class="comment-text">
                                佳能AE-1确实是入门胶片的好选择，操作简单，镜头群也丰富。不过要注意快门帘幕的老化问题，购买前最好测试一下快门各档位是否准确。
                            </div>
                            <div class="comment-actions">
                                <span class="comment-action like-comment liked">
                                    <i class="fas fa-heart"></i> 47
                                </span>
                                <span class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </span>
                            </div>
                            
                            <!-- 回复区 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=32" alt="用户头像" class="comment-avatar">
                                    <div class="comment-content">
                                        <div class="reply-header">
                                            <span class="reply-author">老法师</span>
                                            <span class="reply-to">回复 胶片达人</span>
                                        </div>
                                        <div class="reply-text">
                                            补充一点，还要检查测光表是否工作正常，这个年代的机器很多测光都不准了。
                                        </div>
                                        <div class="reply-actions">
                                            <span class="comment-action like-reply">
                                                <i class="far fa-heart"></i> 12
                                            </span>
                                            <span class="comment-action reply-btn">
                                                <i class="far fa-reply"></i> 回复
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言3 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=33" alt="用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <span class="comment-author">新手求教</span>
                                <span class="comment-time">1天前</span>
                            </div>
                            <div class="comment-text">
                                我也想入门胶片摄影，请问除了相机之外，还需要哪些必备配件呢？求推荐！
                            </div>
                            <div class="comment-actions">
                                <span class="comment-action like-comment">
                                    <i class="far fa-heart"></i> 8
                                </span>
                                <span class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </span>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            
            <!-- 相关推荐 -->
            <section class="related-wishes">
                <h2 class="section-title">
                    <i class="fas fa-thumbs-up"></i> 你可能也感兴趣
                </h2>
                
                <div class="related-container">
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=40" alt="彩色胶片套装" class="related-image">
                        <h3 class="related-title">彩色胶片套装 - 想尝试不同品牌胶片的效果</h3>
                        <div class="related-meta">2天前 · ¥350</div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=41" alt="相机背包" class="related-image">
                        <h3 class="related-title">复古相机背包 - 保护我的相机设备</h3>
                        <div class="related-meta">5天前 · ¥420</div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <img src="https://picsum.photos/400/300?random=42" alt="暗房设备" class="related-image">
                        <h3 class="related-title">入门级暗房设备 - 想学习自己冲洗胶片</h3>
                        <div class="related-meta">1周前 · ¥1,200</div>
                    </a>
                    
                    <a href="#" class="related-card">
                        <div class="no-image" style="height: 120px; border-radius: 8px; margin-bottom: 0.5rem;">
                            <i class="fas fa-book"></i>
                        </div>
                        <h3 class="related-title">胶片摄影教程 - 从零开始学习胶片摄影</h3>
                        <div class="related-meta">3天前 · ¥150</div>
                    </a>
                </div>
            </section>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 图片切换功能
            const thumbnails = document.querySelectorAll('.thumbnail');
            const mainImage = document.getElementById('mainImage');
            const imageCount = document.querySelector('.image-count');
            
            thumbnails.forEach((thumbnail, index) => {
                thumbnail.addEventListener('click', function() {
                    // 更新主图
                    mainImage.src = this.getAttribute('data-img');
                    
                    // 更新缩略图活跃状态
                    thumbnails.forEach(t => t.classList.remove('active'));
                    this.classList.add('active');
                    
                    // 更新图片计数
                    imageCount.textContent = `${index + 1}/${thumbnails.length}`;
                });
            });
            
            // 点赞功能
            const likeBtn = document.getElementById('likeBtn');
            const likeCount = document.getElementById('likeCount');
            
            likeBtn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                let count = parseInt(likeCount.textContent);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    likeCount.textContent = (count + 1).toString();
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    likeCount.textContent = (count - 1).toString();
                    this.classList.remove('liked');
                }
            });
            
            // 收藏功能
            const saveBtn = document.getElementById('saveBtn');
            
            saveBtn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                const text = this.querySelector('span');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    text.textContent = '已收藏';
                } else {
                    // 取消收藏
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    text.textContent = '收藏';
                }
            });
            
            // 留言点赞功能
            const likeCommentBtns = document.querySelectorAll('.like-comment');
            
            likeCommentBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countText = this.childNodes[2].textContent.trim();
                    let count = parseInt(countText);
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        this.childNodes[2].textContent = ` ${count + 1}`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        this.childNodes[2].textContent = ` ${count - 1}`;
                    }
                });
            });
            
            // 回复点赞功能
            const likeReplyBtns = document.querySelectorAll('.like-reply');
            
            likeReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countText = this.childNodes[2].textContent.trim();
                    let count = parseInt(countText);
                    
                    if (icon.classList.contains('far')) {
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        this.childNodes[2].textContent = ` ${count + 1}`;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        this.childNodes[2].textContent = ` ${count - 1}`;
                    }
                });
            });
            
            // 回复按钮功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 找到最近的回复输入框
                    const replyInput = this.closest('.comment-content').querySelector('.reply-input-container');
                    
                    if (replyInput) {
                        // 切换显示/隐藏
                        replyInput.style.display = replyInput.style.display === 'none' ? 'flex' : 'none';
                        
                        // 如果显示则聚焦
                        if (replyInput.style.display === 'flex') {
                            replyInput.querySelector('.reply-input').focus();
                        }
                    }
                });
            });
        });
    </script>
</body>
</html>

